package devcken.springframework.context;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.security.authentication.event.AbstractAuthenticationEvent;
import org.springframework.stereotype.Component;

@Component
public class BroadcastableAuthenticationEventListener implements ApplicationListener<AbstractAuthenticationEvent>
{
	private final static Logger logger = LoggerFactory.getLogger(BroadcastableAuthenticationEventListener.class);

	@Override
	public void onApplicationEvent(AbstractAuthenticationEvent event)
	{
		logger.info(event.getClass().getName());
	}
}